<?php
	require_once '../inc/functions.php';
	require_once 'data.php';
	$section='Users';
	$rs = Get($_REQUEST['id']);
	$type = GetTypeid($rs['Type_id']);
	$contacts = GetContactInfo($_REQUEST['id']);
	$address = GetShippingAdd($_REQUEST['id']);
	$baddress = GetBillingAdd($_REQUEST['id']);
?>

	

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Core[nerd]-Users</title>
<link href="../inc/main.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="container">

<?php include('../inc/nav.php'); ?>

<div id="edit">
<form action="editConf.php?id=<?=$rs['id']?>" method="post">
<table>
<tr><td style="color:red; font-size:small; font-style:italic;">* required fields</td></tr>
<tr><td><h3>Customer Name</h3></td></tr>
<tr>
	<td>*First Name: <input type="text" name="FirstName" value="<?=$rs['FirstName']?>" ></td>
	<td>*Last Name: <input type="text" name="LastName" value="<?=$rs['LastName']?>"></td>
</tr>
<tr><td><h3>Login Information</h3></td></tr>
<tr>
	<td>*Email: <input type="text" name="Email" value="<?=$contacts['Email']?>"></td>
	<td>*Password: <input type="text" name="Password" value="<?=$rs['Password']?>"></td>
</tr>
<tr><td><h3>Customer Info</h3></td></tr>
<tr>
	<td>*Phone Number: <input type="text" name="PhoneNumber" value="<?=$contacts['Phone']?>" ></td>
	<td>*Facebook: <input type="text" name="Facebook" value="<?=$contacts['Facebook']?>" ></td>
</tr>
<!--tr><td><h3>Shipping Address</h3></td></tr>
<tr>
	<td>*Street: <input style="width:180px" type="text" name="Street" value="<?=$address['Street']?>"/></td>
	<td>*City: <input type="text" name="City" value="<?=$address['City']?>" /></td>
	<td>*State: <input type="text" name="State" value="<?=$address['State']?>"/></td>
	<td>*Zip Code: <input type="text" maxlength="5" name="ZipCode" value="<?=$address['ZipCode']?>" /></td>
</tr>
<tr><td><h3>Billing Address</h3></td></tr>
<tr>
	<td>*Street: <input style="width:210px" type="text" name="bStreet" value="<?=$baddress['Street']?>" /></td>
	<td>*City: <input type="text" name="bCity" value="<?=$baddress['City']?>"/></td>
	<td>*State: <input type="text" name="bState" value="<?=$baddress['City']?>" /></td>
	<td>*Zip Code: <input type="text" maxlength="5" name="bZipCode" value="<?=$baddress['ZipCode']?>" /></td>
</tr-->
<tr><td><input type="submit" value="Save" ></td></tr>
</table>
</form>
</div>

</div>
</body>

</html>
